package com.jie.demo1;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.CrossOrigin;
@EnableScheduling
@MapperScan("com.jie.demo1.mapper")  // 扫描 Mapper 接口
@SpringBootApplication
@CrossOrigin(origins = "http://localhost:5173/") // 允许来自这个域的请求
public class Demo1Application {

    public static void main(String[] args) {
        SpringApplication.run(Demo1Application.class, args);
    }

}
